﻿<Window x:Class="Scarecrow_Network_Manager.AdapterWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:Scarecrow_Network_Manager.Properties"
        Title="AdapterWindow" Height="444" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
    <Grid>
        <Image Source="Images\System\background.png" Stretch="Fill"/>
        <Grid Margin="20,77,0,0" VerticalAlignment="Top" Width="340" Height="156" HorizontalAlignment="Left" Name="IPGrid">
            <GroupBox DataContext="{Binding}" Header="                                                       " Height="118" HorizontalAlignment="Left" IsEnabled="False" Margin="10,30,0,0" Name="grpbIP" VerticalAlignment="Top" Width="315">
                <Grid>
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="txtIPAddr" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtIPAddr_TextChanged" />
                    <Label Content="{x:Static properties:Resources.IPAddress}" Foreground="White" Grid.ColumnSpan="2" Height="28" HorizontalAlignment="Left" Margin="6,4,0,0" Name="lblIP" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,34,6,0" Name="txtSubnet" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtSubnet_TextChanged" />
                    <Label Content="{x:Static properties:Resources.SubnetMask}" Foreground="White" Grid.ColumnSpan="2" Height="28" HorizontalAlignment="Left" Margin="6,32,0,0" Name="lblSubnet" VerticalAlignment="Top" Width="81" />
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,63,6,0" Name="txtGateway" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtGateway_TextChanged" />
                    <Label Content="{x:Static properties:Resources.Gateway}" Foreground="White" Grid.ColumnSpan="2" Height="28" HorizontalAlignment="Left" Margin="7,61,0,0" Name="lblGateway" VerticalAlignment="Top" />
                </Grid>
            </GroupBox>
            <RadioButton Checked="rbDHCPIP_Checked" Content="{x:Static properties:Resources.DHCPIPSetting}" Foreground="White" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="23,10,0,0" Name="rbDHCPIP" VerticalAlignment="Top" />
            <RadioButton Checked="rbStaticIP_Checked" Content="{x:Static properties:Resources.StaticIPSetting}" Foreground="White" Height="16" HorizontalAlignment="Left" Margin="23,30,0,0" Name="rbStaticIP" VerticalAlignment="Top" />
        </Grid>
        <Grid Height="127" Margin="20,239,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="341" Name="DNSGrid">
            <GroupBox DataContext="{Binding}" Header="                                                                   " Height="87" HorizontalAlignment="Left" IsEnabled="False" Margin="10,30,0,0" Name="grpbDNS" VerticalAlignment="Top" Width="315">
                <Grid>
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="txtDNS1" TextAlignment="Center" VerticalAlignment="Top" Width="150" TextChanged="txtDNS1_TextChanged" />
                    <Label Content="{x:Static properties:Resources.DNS1}" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="6,4,0,0" Name="lblDNS1" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,34,6,0" Name="txtDNS2" TextAlignment="Center" VerticalAlignment="Top" Width="150" TextChanged="txtDNS2_TextChanged" />
                    <Label Content="{x:Static properties:Resources.DNS2}" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="6,32,0,0" Name="lblDNS2" VerticalAlignment="Top" Width="135" />
                </Grid>
            </GroupBox>
            <RadioButton Checked="rbDHCPDNS_Checked" Content="{x:Static properties:Resources.DHCPDNSSetting}" Foreground="White" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="22,10,0,0" Name="rbDHCPDNS" VerticalAlignment="Top" />
            <RadioButton Checked="rbStaticDNS_Checked" Content="{x:Static properties:Resources.StaticDNSSetting}" Foreground="White" Height="16" HorizontalAlignment="Left" Margin="22,30,0,0" Name="rbStaticDNS" VerticalAlignment="Top" />
        </Grid>
        <RadioButton Content="{x:Static properties:Resources.Enable}" Foreground="White" Height="16" HorizontalAlignment="Left" Margin="122,55,0,0" Name="rbEnabled" VerticalAlignment="Top" Checked="rbEnabled_Checked" />
        <RadioButton Content="{x:Static properties:Resources.Disable}" Foreground="White" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="182,55,0,0" Name="rbDisabled" VerticalAlignment="Top" Checked="rbDisabled_Checked"/>
        <Button Content="{x:Static properties:Resources.Ok}" HorizontalAlignment="Right" Margin="0,0,12,10" Name="cmdSave" Width="75" Height="23" VerticalAlignment="Bottom" Click="cmdSave_Click" />
        <Button Content="{x:Static properties:Resources.Close}" HorizontalAlignment="Left" Margin="12,0,0,10" Name="cmdCancel" Width="75" Height="23" VerticalAlignment="Bottom" Click="cmdCancel_Click" />
        <Label Content="{x:Static properties:Resources.Adapter}" Height="28" HorizontalAlignment="Left" Margin="57,19,0,0" Name="lblAdapterName" VerticalAlignment="Top" Foreground="White" />
        <Label Height="28" HorizontalAlignment="Left" Margin="114,19,0,0" Name="lblAdapter" VerticalAlignment="Top" Width="172" Foreground="White" />
    </Grid>
</Window>
